package com.finalministry.server;

import java.io.File;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import org.apache.commons.io.FileUtils;

@Path("/designmap")
public class ButtonDesignMap {

	@GET
	@Produces(MediaType.APPLICATION_XHTML_XML + ";charset=utf-8")
	public String loadAllTerritories() throws Exception {

		return FileUtils.readFileToString(new File("src/main/resources/web/map.htm")).replaceAll("#HOME#", FinalministryWebServer.contentUrl);
    }
}
